<template>
  <div class="container">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="整改记录" name="first">
        <rectify></rectify>
      </el-tab-pane>
      <el-tab-pane label="整改统计" name="second">
        <statistics></statistics>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script>
import rectify from './record';
import statistics from './statistics';
  export default {
    components: {
       rectify,
       statistics
    },
    data() {
      return {
        activeName: 'first'
      };
    },
    methods: {
      handleClick(tab, event) {
        console.log(tab, event);
      }
    }
  };
</script>